import fetch from 'common/src/utils/fetch';
/**
 *
 * 查询权限(分页)
 */
export function getAuthPushTimeListPage(data) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/findAuthPushTimeListPage',
    method: 'post',
    data
  })
}

/**
 *
 * 查询权限
 */
export function getAuthPushTimeList(data) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/findAuthPushTimeList',
    method: 'post',
    data
  })
}

/**
 * 查看菜单功能点发布时间详情
 * @param {data} data
 */
export function getAuthPushTimeById(query) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/findAuthPushTimeById?' + query,
    method: 'get'
  })
}

/**
 * 新增菜单功能点发布时间
 * @param {data} data
 */
export function addAuthTime(data) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/add',
    method: 'post',
    data
  });
}
/**
 * 修改菜单功能点发布时间
 * @param {data} data
 */
export function updateAuthTime(data) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/update',
    method: 'put',
    data
  });
}

/**
 * 批量删除菜单功能点发布时间
 * @param {data} data
 */
export function deleteAuthTimeByIds(data) {
  return fetch({
    url: '/api/cultureservice/cultureAuth/deleteAuthPushTimeByIds',
    method: 'post',
    data
  })
}